<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
<meta name="decorator" content="moduleView" />
<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('[data-accounting]').each(function() {
					var $this = $(this);
					if ($this.attr("data-accounting-precision")&& "" != $this.attr("data-accounting-precision")) {
												$this.html(accounting.formatMoney(
												$this.attr("data-accounting"),"¥ ",
													$this.attr("data-accounting-precision") * 1));
											} else {
												$this.html(accounting.formatMoney(
														$this.attr("data-accounting"),"¥ "));
											}
										});

					});
</script>
</head>
<body>

		<div class="Report_f">
	        <div class="Report_f_1">
	             <div class="Report_f_title_1">费用发票</div>
	        	 <div class="o-l-action">
					<a class="btn btn-default btn-sm btn_5 pull-right" role="button" href="javascript:void(0)" onclick="history.go(-1)">返回</a> 
					<c:if test="${obj.isConfirmed!=1}">
			    		<button type="button" id="btnExport" class="btn btn-success btn-sm btn_5 pull-right" role="button"
			    			 onclick="return Oosp_Confirm('确认要确认该发票吗？', '${contextPath}/statement/stm/paymentList/${paymentList.paymentOrder}/updateIsPayment')">确认</button>
					</c:if> 
				</div>
	             <div class="tab-content Report_f_title_3">
	                  <div class="Report_f_title_5">
	                       <div class="tab-content Report_f_title_3">
	                            <div class="tab-pane active" id="label_1">
	                                 <div class="Report_f_title_4">
	                                      <div class="f_3">
	                                        <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_4">支付单号:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">${paymentList.paymentOrder}</div>
	                                             </div>
	                                         </div>
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">是否确认:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
	                                                  	<ossp:value dictType="YESORNO" key="${paymentList.isConfirmed}"></ossp:value>
													  </div>
	                                             </div>
	                                         </div>
	                                      </div>
	                                      <div class="f_2">
	                                        <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_4">供应商编号:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">${paymentList.supplierNo}</div>
	                                             </div>
	                                         </div>
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">供应商名称:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">${paymentList.supplierName}</div>
	                                             </div>
	                                         </div>
	                                      </div>
	                                      <div class="f_3">
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">支付状态</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
	                                                  	<ossp:value dictType="IS_PAYMENT" key="${paymentList.isPayment}"></ossp:value>
	                                                  </div>
	                                             </div>
	                                         </div>
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">支付方式:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
	                                                  	<ossp:value dictType="PAYMENT_METHOD" key="${paymentList.paymentMethod}"></ossp:value>
	                                                  </div>
	                                             </div>
	                                         </div>
	                                      </div>
	                                      <div class="f_2">
	                                        <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_4">单据类型:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">${paymentList.billType}</div>
	                                             </div>
	                                         </div>
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">本期支付金额:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14" data-accounting="${paymentList.paymentAmount}"
														data-accounting-precision="4"></div>
	                                             </div>
	                                         </div>
	                                      </div>
	                                      <div class="f_3">
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">开户行:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
														${paymentList.bankName}
	                                                  </div>
	                                             </div>
	                                         </div>
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">银行帐号:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
														${paymentList.bankAccount}
	                                                  </div>
	                                             </div>
	                                         </div>
	                                      </div>
	                                      <div class="f_2">
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">门店:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
														${paymentList.store}
	                                                  </div>
	                                             </div>
	                                         </div>
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">部门:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
														${paymentList.department}
	                                                  </div>
	                                             </div>
	                                         </div>
	                                      </div>
	                                      <div class="f_2">
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">结算开始日期:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
														<fmt:formatDate value="${paymentList.startDate}"
															pattern="yyyy-MM-dd" />
	                                                  </div>
	                                             </div>
	                                         </div>
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">结算结束日期:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
														<fmt:formatDate value="${paymentList.paymentDate}"
															pattern="yyyy-MM-dd" />
	                                                  </div>
	                                             </div>
	                                         </div>
	                                      </div>
	                                      <div class="f_3">
	                                        <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_4">支付日期:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14"><fmt:formatDate value="${paymentList.paymentDate}" pattern="yyyy-MM-dd"/></div>
	                                             </div>
	                                         </div>
	                                         <div class="form-group col-sm-6">
	                                             <label for="inputtext3" class="col-sm-4 control-label f_7">会计期间:</label>
	                                             <div class="col-sm-8 f_6">
	                                                  <div class="col-sm-7 f_14">
														${paymentList.accountingPeriod}
	                                                  </div>
	                                             </div>
	                                         </div>
	                                      </div>
	                                 </div>
	                            </div>
	                        </div>
	                  </div>
	             </div>
	        </div>
	   </div>  
</body>
</html>